//package com.study.rabbitmq.dead.controller;
//
//import com.study.rabbitmq.dead.DeadProducer;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.annotation.Resource;
//
//@RestController
//@RequestMapping("/dead")
//public class DeadControll {
//
//    @Resource
//    private DeadProducer producer;
//
//    @GetMapping("/")
//    public String send(){
//        producer.send("123456");
//        return "消息发送成功";
//    }
//}
